package com.wejoy.video.middle.station.data.constant;

/**
 * redisKey集合
 */
public class RedisKeys {
    public final static String SYS_BASE_PARAM_KEY = "sysBaseParamKey";
    /** * 微信accesstoken*/
    public final static String WECHAT_ACCESS_TOKEN = "wechatAccessToken";
    /*** id worker service中的worker id*/
    public static final String SNOW_FLAKE_WORKER_ID = "snow:flake_worker:id";
    /**系统用户登陆错误次数*/
    public static final String  SYS_USER_LOGIN_ERROR_NUM = "sys:user:login:error:num:%s";
    /** 生成的二维码地址 */
    public static final String IMAGE_QRCODE = "image:qrcode";
    /** 视频资源库 */
    public static final String VIDEO_RES = "video:res";
    /** 场站AI算法数量 */
    public static final String STATIONS_NUM= "stations:num";
    /** 营业厅AI算法数量*/
    public static final String OFFICES_NUM = "offices:num";
    /** 全部AI算法种类*/
    public static final String ALL_AI_NUM = "all:num";
    /** AI算法种类配置路数*/
    public static final String AI_NUMS = "all:nums";
    /** 调度中心场站AI算法数量 */
    public static final String DISPATCH_STATIONS_AI_NUM= "dispatch:stations:ai:num";
    /** 调度中心营业厅AI算法数量*/
    public static final String DISPATCH_OFFICES_AI_NUM = "dispatch:offices:ai:num";
    /** 调度中心AI算法数量*/
    public static final String DISPATCH_AI_NUM = "dispatch:ai:num";
    /** 公司场站AI算法数量 */
    public static final String COMPANY_STATIONS_AI_NUM= "company:stations:ai:num";
    /** 公司营业厅AI算法数量*/
    public static final String COMPANY_OFFICES_AI_NUM = "company:offices:ai:num";
    /** 公司AI算法数量*/
    public static final String COMPANY_AI_NUM = "company:ai:num";
    /** 四川区域AI算法数量*/
    public static final String AREA_AI_NUM_SC = "dept:ai:num:sc";
    /** 安徽区域AI算法数量*/
    public static final String AREA_AI_NUM_AH = "dept:ai:num:ah";
    /** 顺平区域AI算法数量*/
    public static final String AREA_AI_NUM_SP = "dept:ai:num:sp";
    /** 景德镇区域AI算法数量*/
    public static final String AREA_AI_NUM_JDZ = "dept:ai:num:sc";
    /** 四川区域场站AI算法数量*/
    public static final String AREA_AI_NUM_SC_SITE = "dept:ai:num:sc:site";
    /** 安徽区域AI场站算法数量*/
    public static final String AREA_AI_NUM_AH_SITE = "dept:ai:num:ah:site";
    /** 顺平区域AI场站算法数量*/
    public static final String AREA_AI_NUM_SP_SITE = "dept:ai:num:sp:site";
    /** 景德镇区域AI场站算法数量*/
    public static final String AREA_AI_NUM_JDZ_SITE = "dept:ai:num:jdz:site";
    /** 四川区域营业厅AI算法数量*/
    public static final String AREA_AI_NUM_SC_BUSINESS = "dept:ai:num:sc:business";
    /** 安徽区域AI营业厅算法数量*/
    public static final String AREA_AI_NUM_AH_BUSINESS = "dept:ai:num:ah:business";
    /** 顺平区域AI营业厅算法数量*/
    public static final String AREA_AI_NUM_SP_BUSINESS = "dept:ai:num:sp:business";
    /** 景德镇区域AI营业厅算法数量*/
    public static final String AREA_AI_NUM_JDZ_BUSINESS = "dept:ai:num:jdz:business";

    public static final String WECHAT_API_TOKEN = "wechat:api:token";
    public static final String SCREEN_API_TOKEN = "screen:api:token";
    public static final String SMART_API_SIGN_TIME = "smart:api:sign:time";

    /**
     * 图片验证码缓存
     * @param identification
     * @return
     */
    public static String getVerifyCodeKey(String identification) {
        return String.format("verify:code:%s", identification);
    }


    public static String getSystemUserSessionKey(String token) {
        return String.format("system:user:session:%s", token);
    }

    /**
     * 小程序scheme生成
     * @param appId
     * @param path
     * @return
     */
    public static String getMpScheme(String appId, String path) {
        return String.format("mp:schema:%s:%s", appId, path);
    }
}
